package
{
	import com.caseProject.puremvc.facade.CaseFacade;
	import com.caseProject.puremvc.mediator.events.StageEvent;
	import com.caseProject.puremvc.mediator.view.MainView;
	
	import flash.desktop.NativeApplication;
	import flash.display.NativeWindow;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	[SWF(width="800", height="600", frameRate="30")]
	public class CaseProjectAir extends Sprite
	{
		private var mainView:MainView;
		
		public function CaseProjectAir()
		{
			this.mainView = new MainView ();
			this.addChild(this.mainView);
			
			var facade:CaseFacade = new CaseFacade ();
			facade.startup(this.mainView);
			
			this.addEventListener(Event.ADDED_TO_STAGE, onInit);			
		}
		
		protected function onInit(event:Event):void
		{
			this.stage.scaleMode = StageScaleMode.NO_SCALE;
			this.stage.align = StageAlign.TOP_LEFT;
		}
	}
}